package com.zf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ControllerTest2 {

    @RequestMapping("/t2")
    public String index(Model model){
        model.addAttribute("msg","ControllerTest2");

        return "test";
    }

    @RequestMapping("/t3")
    public String index2(Model model){
        model.addAttribute("msg","ControllerTest3");

        return "test";
    }
}
